<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>Table of Contents - json: Ruby Standard Library Documentation</title>


<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>

<script src="./js/jquery-3.2.0.min.js"></script>

<script src="./js/vue.min.js"></script>
<script src="./js/js.cookie.min.js"></script>

<link href="./css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="./css/rdoc.css" rel="stylesheet">
<link href="./css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
  var index_rel_prefix = "./";
  var darkModeCsseHref = "./css/rdoc-dm.css"
  var defaultModeCssHref = "./css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" class="table-of-contents">
  <!-- table_of_contents.html -->
  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    

    <div id='extraz'><div class='adzbox-index'  >
        
      </div>         
    </div>

    <main role="main">
    <h1 class="class">Table of Contents - json: Ruby Standard Library Documentation</h1>


          <h2 id="classes">Classes and Modules</h2>
          <ul>
              <li class="class">
                <a href="BigDecimal.html">BigDecimal</a>
                  </li>
              <li class="class">
                <a href="Class.html">Class</a>
                  </li>
              <li class="class">
                <a href="Complex.html">Complex</a>
                  </li>
              <li class="class">
                <a href="Date.html">Date</a>
                  </li>
              <li class="class">
                <a href="DateTime.html">DateTime</a>
                  </li>
              <li class="class">
                <a href="Exception.html">Exception</a>
                  </li>
              <li class="module">
                <a href="JSON.html">JSON</a>

                <ul>
                    <li><a href="JSON.html#label-JavaScript+Object+Notation+-28JSON-29">JavaScript Object Notation (JSON)</a>
                    <li><a href="JSON.html#label-Using+Module+JSON">Using Module JSON</a>
                    <li><a href="JSON.html#label-Parsing+JSON">Parsing JSON</a>
                    <li><a href="JSON.html#label-Parsing+JSON+Arrays">Parsing JSON Arrays</a>
                    <li><a href="JSON.html#label-Parsing+JSON+Objects">Parsing JSON Objects</a>
                    <li><a href="JSON.html#label-Parsing+JSON+Scalars">Parsing JSON Scalars</a>
                    <li><a href="JSON.html#label-Parsing+Options">Parsing Options</a>
                    <li><a href="JSON.html#label-Input+Options">Input Options</a>
                    <li><a href="JSON.html#label-Output+Options">Output Options</a>
                    <li><a href="JSON.html#label-Generating+JSON">Generating JSON</a>
                    <li><a href="JSON.html#label-Generating+JSON+from+Arrays">Generating JSON from Arrays</a>
                    <li><a href="JSON.html#label-Generating+JSON+from+Hashes">Generating JSON from Hashes</a>
                    <li><a href="JSON.html#label-Generating+JSON+from+Other+Objects">Generating JSON from Other Objects</a>
                    <li><a href="JSON.html#label-Generating+Options">Generating Options</a>
                    <li><a href="JSON.html#label-Input+Options">Input Options</a>
                    <li><a href="JSON.html#label-Output+Options">Output Options</a>
                    <li><a href="JSON.html#label-JSON+Additions">JSON Additions</a>
                    <li><a href="JSON.html#label-Built-in+Additions">Built-in Additions</a>
                    <li><a href="JSON.html#label-Custom+JSON+Additions">Custom JSON Additions</a>
                    </ul>
                  </li>
              <li class="module">
                <a href="JSON/Ext.html">JSON::Ext</a>
                  </li>
              <li class="module">
                <a href="JSON/Ext/Generator.html">JSON::Ext::Generator</a>
                  </li>
              <li class="class">
                <a href="JSON/Ext/Generator/State.html">JSON::Ext::Generator::State</a>
                  </li>
              <li class="class">
                <a href="JSON/Ext/Parser.html">JSON::Ext::Parser</a>
                  </li>
              <li class="class">
                <a href="JSON/GeneratorError.html">JSON::GeneratorError</a>
                  </li>
              <li class="class">
                <a href="JSON/GenericObject.html">JSON::GenericObject</a>
                  </li>
              <li class="class">
                <a href="JSON/JSONError.html">JSON::JSONError</a>
                  </li>
              <li class="class">
                <a href="JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a>
                  </li>
              <li class="class">
                <a href="JSON/NestingError.html">JSON::NestingError</a>
                  </li>
              <li class="class">
                <a href="JSON/ParserError.html">JSON::ParserError</a>
                  </li>
              <li class="module">
                <a href="Kernel.html">Kernel</a>
                  </li>
              <li class="class">
                <a href="OpenStruct.html">OpenStruct</a>
                  </li>
              <li class="class">
                <a href="Range.html">Range</a>
                  </li>
              <li class="class">
                <a href="Rational.html">Rational</a>
                  </li>
              <li class="class">
                <a href="Regexp.html">Regexp</a>
                  </li>
              <li class="class">
                <a href="Set.html">Set</a>
                  </li>
              <li class="class">
                <a href="Struct.html">Struct</a>
                  </li>
              <li class="class">
                <a href="Symbol.html">Symbol</a>
                  </li>
              <li class="class">
                <a href="Time.html">Time</a>
                  </li>
                </ul>

                <h2 id="methods">Methods</h2>
                <ul>

                    <li class="method">
                      <a href="JSON.html#method-c-5B-5D">::[]</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON.html#method-c-create_fast_state">::create_fast_state</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON.html#method-c-create_id">::create_id</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON.html#method-c-create_id-3D">::create_id=</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON.html#method-c-create_pretty_state">::create_pretty_state</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON/GenericObject.html#method-c-dump">::dump</a>
                      &mdash;
                      <span class="container">JSON::GenericObject</span>

                    <li class="method">
                      <a href="JSON/GenericObject.html#method-c-from_hash">::from_hash</a>
                      &mdash;
                      <span class="container">JSON::GenericObject</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-c-from_state">::from_state</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON.html#method-c-iconv">::iconv</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON/GenericObject.html#method-c-json_creatable-3F">::json_creatable?</a>
                      &mdash;
                      <span class="container">JSON::GenericObject</span>

                    <li class="method">
                      <a href="BigDecimal.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">BigDecimal</span>

                    <li class="method">
                      <a href="Complex.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">Complex</span>

                    <li class="method">
                      <a href="Date.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">Date</span>

                    <li class="method">
                      <a href="DateTime.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">DateTime</span>

                    <li class="method">
                      <a href="Exception.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">Exception</span>

                    <li class="method">
                      <a href="OpenStruct.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">OpenStruct</span>

                    <li class="method">
                      <a href="Range.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">Range</span>

                    <li class="method">
                      <a href="Rational.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">Rational</span>

                    <li class="method">
                      <a href="Regexp.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">Regexp</span>

                    <li class="method">
                      <a href="Set.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">Set</span>

                    <li class="method">
                      <a href="Struct.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">Struct</span>

                    <li class="method">
                      <a href="Symbol.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">Symbol</span>

                    <li class="method">
                      <a href="Time.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">Time</span>

                    <li class="method">
                      <a href="JSON/GenericObject.html#method-c-json_create">::json_create</a>
                      &mdash;
                      <span class="container">JSON::GenericObject</span>

                    <li class="method">
                      <a href="JSON/GenericObject.html#method-c-load">::load</a>
                      &mdash;
                      <span class="container">JSON::GenericObject</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Parser.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">JSON::Ext::Parser</span>

                    <li class="method">
                      <a href="JSON.html#method-c-restore">::restore</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON/JSONError.html#method-c-wrap">::wrap</a>
                      &mdash;
                      <span class="container">JSON::JSONError</span>

                    <li class="method">
                      <a href="Kernel.html#method-i-JSON">#JSON</a>
                      &mdash;
                      <span class="container">Kernel</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-5B-5D">#[]</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/GenericObject.html#method-i-5B-5D">#[]</a>
                      &mdash;
                      <span class="container">JSON::GenericObject</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-5B-5D-3D">#[]=</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/GenericObject.html#method-i-5B-5D-3D">#[]=</a>
                      &mdash;
                      <span class="container">JSON::GenericObject</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-allow_nan-3F">#allow_nan?</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-array_nl">#array_nl</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-array_nl-3D">#array_nl=</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="BigDecimal.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">BigDecimal</span>

                    <li class="method">
                      <a href="Complex.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">Complex</span>

                    <li class="method">
                      <a href="Date.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">Date</span>

                    <li class="method">
                      <a href="DateTime.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">DateTime</span>

                    <li class="method">
                      <a href="Exception.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">Exception</span>

                    <li class="method">
                      <a href="OpenStruct.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">OpenStruct</span>

                    <li class="method">
                      <a href="Range.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">Range</span>

                    <li class="method">
                      <a href="Rational.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">Rational</span>

                    <li class="method">
                      <a href="Regexp.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">Regexp</span>

                    <li class="method">
                      <a href="Set.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">Set</span>

                    <li class="method">
                      <a href="Struct.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">Struct</span>

                    <li class="method">
                      <a href="Symbol.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">Symbol</span>

                    <li class="method">
                      <a href="Time.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">Time</span>

                    <li class="method">
                      <a href="JSON/GenericObject.html#method-i-as_json">#as_json</a>
                      &mdash;
                      <span class="container">JSON::GenericObject</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-ascii_only-3F">#ascii_only?</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-buffer_initial_length">#buffer_initial_length</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-buffer_initial_length-3D">#buffer_initial_length=</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-check_circular-3F">#check_circular?</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-configure">#configure</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-depth">#depth</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-depth-3D">#depth=</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON.html#method-i-dump">#dump</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-escape_slash">#escape_slash</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-escape_slash-3D">#escape_slash=</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-escape_slash-3F">#escape_slash?</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON.html#method-i-fast_generate">#fast_generate</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-generate">#generate</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON.html#method-i-generate">#generate</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-indent">#indent</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-indent-3D">#indent=</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-initialize_copy">#initialize_copy</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="Kernel.html#method-i-j">#j</a>
                      &mdash;
                      <span class="container">Kernel</span>

                    <li class="method">
                      <a href="Kernel.html#method-i-jj">#jj</a>
                      &mdash;
                      <span class="container">Kernel</span>

                    <li class="method">
                      <a href="Class.html#method-i-json_creatable-3F">#json_creatable?</a>
                      &mdash;
                      <span class="container">Class</span>

                    <li class="method">
                      <a href="JSON.html#method-i-load">#load</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON.html#method-i-load_file">#load_file</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON.html#method-i-load_file-21">#load_file!</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-max_nesting">#max_nesting</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-max_nesting-3D">#max_nesting=</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-merge">#merge</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-object_nl">#object_nl</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-object_nl-3D">#object_nl=</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Parser.html#method-i-parse">#parse</a>
                      &mdash;
                      <span class="container">JSON::Ext::Parser</span>

                    <li class="method">
                      <a href="JSON.html#method-i-parse">#parse</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON.html#method-i-parse-21">#parse!</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON.html#method-i-pretty_generate">#pretty_generate</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON.html#method-i-restore">#restore</a>
                      &mdash;
                      <span class="container">JSON</span>

                    <li class="method">
                      <a href="JSON/Ext/Parser.html#method-i-source">#source</a>
                      &mdash;
                      <span class="container">JSON::Ext::Parser</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-space">#space</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-space-3D">#space=</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-space_before">#space_before</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-space_before-3D">#space_before=</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-to_h">#to_h</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/Ext/Generator/State.html#method-i-to_hash">#to_hash</a>
                      &mdash;
                      <span class="container">JSON::Ext::Generator::State</span>

                    <li class="method">
                      <a href="JSON/GenericObject.html#method-i-to_hash">#to_hash</a>
                      &mdash;
                      <span class="container">JSON::GenericObject</span>

                    <li class="method">
                      <a href="BigDecimal.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">BigDecimal</span>

                    <li class="method">
                      <a href="Complex.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">Complex</span>

                    <li class="method">
                      <a href="Date.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">Date</span>

                    <li class="method">
                      <a href="DateTime.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">DateTime</span>

                    <li class="method">
                      <a href="Exception.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">Exception</span>

                    <li class="method">
                      <a href="OpenStruct.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">OpenStruct</span>

                    <li class="method">
                      <a href="Range.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">Range</span>

                    <li class="method">
                      <a href="Rational.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">Rational</span>

                    <li class="method">
                      <a href="Regexp.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">Regexp</span>

                    <li class="method">
                      <a href="Set.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">Set</span>

                    <li class="method">
                      <a href="Struct.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">Struct</span>

                    <li class="method">
                      <a href="Symbol.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">Symbol</span>

                    <li class="method">
                      <a href="Time.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">Time</span>

                    <li class="method">
                      <a href="JSON/GenericObject.html#method-i-to_json">#to_json</a>
                      &mdash;
                      <span class="container">JSON::GenericObject</span>

                    <li class="method">
                      <a href="JSON/GenericObject.html#method-i-7C">#|</a>
                      &mdash;
                      <span class="container">JSON::GenericObject</span>
                    </ul>
                    </main>
                  </div> 

<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>.</p><p><a href="https://jamesbritt.bandcamp.com/">Maximum R+D</a>.  </p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

